<%@page import="Helpers.ViewHelpers"%>
<%@ page import="JavaBean.*" %>
<%@ page import="java.util.ArrayList" %>
<p class="title">Liste de spectacles</p>


<%
	ArrayList<BeanSpectacle> listeSpectacles = (ArrayList<BeanSpectacle>)request.getAttribute("spectacles");
%>
	<div id="div_spectacle_container">
	
	<%= ViewHelpers.genererNumerosPages((Integer)request.getAttribute("numPage"), 
									           (Integer)request.getAttribute("nbPages"),
		                                       "Spectacles?p=" ) %>
	
<%
	for (BeanSpectacle be:listeSpectacles)
	{
		%>
		<div class="div_spectacle">
			<a href="Representations?IdSpectacle=<%=be.getId() %>"><img src="<%= request.getContextPath() %><%=be.getLienPhoto() %>" class="image_spectacle" alt="<%=be.getNom() %>">
			<br />
			<%=be.getNom() %></a>
		</div>
		<% 
	}
%>
	</div>
	<div class="clear"></div>
<%

%>

